package com.lxit.video.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.lxit.video.bean.VideoInfo;

public interface YJVideoInfoRepository extends JpaRepository<VideoInfo, Integer>{

	@Query("select vi from VideoInfo vi where vi.vTypeId = :vTypeId ORDER BY vi.createTime desc")
	List<VideoInfo> selectVideoTypeVideoInfo(@Param("vTypeId")Integer vTypeId,Pageable pageable);
	
	@Query("select vi from VideoInfo vi ORDER BY vi.createTime desc")
	List<VideoInfo> selectNewVideoInfo();
}